<template>
	<!--  -->
	<view class="wrap-mag">
		<view class="" :style="{ height: statusBarHeight + 'px' }">

		</view>
		<view class="head dis">
			<view class="head-left dis">
				<view class="head-left-img dis">
					<image src="/static/logo.png" mode=""></image>
				</view>
				<view class="head-left-name">
					<view class="head-left-name-top">135****1122</view>
					<view class="head-left-name-bot" @click="goPages('/pagesC/myList/deposit')">认证提额</view>
				</view>
				
			</view>
			<view class="head-right" @click="goPages('/pagesC/myList/seting')">
				<image src="@/static/my/icon_setting.png" mode=""></image>
			</view>
		</view>
		<view class="list-wrap dis">
			<view class="list-msg" v-for="(item,index) in toolList" @click="goPages(item.url)">
				 <view class="list-msg-top">
					 <image :src="item.icon" mode="aspectFill"></image>
				 </view>
				 <view class="list-msg-bto">
					 {{item.tit}}
				 </view>
			</view>
		</view>

	</view>


</template>

<script setup>
	import {
		ref,
		onMounted,
		getCurrentInstance
	} from 'vue'
	const {
		proxy
	} = getCurrentInstance();
	let toolList=ref([
		{
			tit:'浏览记录',
			url:'/pagesB/createRating/llHistory',
			icon:'../..//static/my/icon_lljl.png'
		},
		{
			tit:'申请记录',
			url:'/pagesB/createRating/llHistory',
			icon:'../../static/my/icon_sqjl.png'
		},
		{
			tit:'我的客服',
			url:'/pagesB/createRating/llHistory',
			icon:'../../static/my/icon_wdkf.png'
		},
		{
			tit:'借款记录',
			url:'/pagesB/createRating/llHistory',
			icon:'../../static/my/icon_jkpt.png'
		},
		{
			tit:'还款记录',
			url:'/pagesB/createRating/llHistory',
			icon:'../../static/my/icon_hkjl.png'
		},
		{
			tit:'还款计划列表',
			url:'/pagesB/createRating/llHistory',
			icon:'../../static/my/icon_hkjhb.png'
		}
	])
	// onMounted(() => {
	// 	init()
	// })
	let statusBarHeight = proxy.$statusBarHeight();
	let goPages=(url)=>{
		uni.navigateTo({
			url
		})
	}
</script>

<style lang="scss" scoped>
	.list-wrap{
		.list-msg{
			text-align: center;
			width: 25%;
			margin: 20rpx 0;
			.list-msg-bto{
				font-weight: 500;
				font-size: 24rpx;
				color: #333333;
				margin-top: 20rpx;
			}
			.list-msg-top{
				width: 60rpx;
				margin: 0 auto;
				height: 60rpx;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
		width: 100%;
		border-radius: 10rpx;
		background: #fff;
		margin-top: 40rpx;
		flex-wrap: wrap;
		padding: 30rpx 0;
	}
	.head {
		.head-right{
			width: 44rpx;
			height: 44rpx;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.head-left {
			align-items: center;

			.head-left-name {
				margin-left: 40rpx;

				.head-left-name-bot {
					border: 1px solid #333333;
					font-weight: 400;
					font-size: 24rpx;
					border-radius: 100rpx;
					width: 140rpx;
					height: 40rpx;
					margin-top: 10rpx;
					line-height: 40rpx;
					text-align: center;
					color: #333333;
				}

				.head-left-name-top {
					font-weight: 600;
					font-size: 36rpx;
					color: #333333;
				}
			}

			.head-left-img {
				width: 130rpx;
				height: 130rpx;
				border-radius: 50%;
				justify-content: center;
				align-items: center;
				background: #fff;

				image {
					width: 120rpx;
					height: 120rpx;
					border-radius: 50%;

				}
			}
		}
		    align-items: center;
		justify-content: space-between;

	}

	.wrap-mag {
		background-image: url(https://oss.jht.jht.cash/img/20250610/i8razGkD.jpg);
		background-size: 100% 100%;
		// padding: 0 30rpx;
		height: 98.5vh;
		padding: 20rpx 40rpx 0 40rpx;
		// background: #F9F9F9;
	}
</style>